package com.da.landlord;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.googlecode.cswish.annotation.cm;

@Entity
@Table(name="da_dacheckinrequirement")
public class DaCheckInRequirement {
	
	private Integer id;
	
	@cm("男生可租")
	private Boolean female;
	
	@cm("女生可租")
	private Boolean male;
	
	@cm("夫妻/情侣可租")
	private Boolean lovers;
	
	@cm("所属房间")
	private DaRoom room;
	
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Boolean getFemale() {
		return female;
	}

	public void setFemale(Boolean female) {
		this.female = female;
	}

	public Boolean getMale() {
		return male;
	}

	public void setMale(Boolean male) {
		this.male = male;
	}

	public Boolean getLovers() {
		return lovers;
	}

	public void setLovers(Boolean lovers) {
		this.lovers = lovers;
	}

	@OneToOne
	public DaRoom getRoom() {
		return room;
	}

	public void setRoom(DaRoom room) {
		this.room = room;
	}
}
